Skip to content

buffer: add indexOf/lastIndexOf method#161

Closed
algesten wants to merge 2 commits intonodejs:v0.12from
algesten:v0.12
Closed

buffer: add indexOf/lastIndexOf method#161
algesten wants to merge 2 commits intonodejs:v0.12from
algesten:v0.12

Conversation

@algesten
Copy link

Expanded on @srijs code to add a Buffer.prototype.lastIndexOf. I used a strategy of divide/conquer, but since I'm a total c++ idiot, I have no idea whether there is a better way (some reverse memcmp variant?). Also I rebased both srijs and these commits against v0.12 hoping it would make it out sooner :)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants